home *** CD-ROM | disk | FTP | other *** search
/ Way Cool Games 2 / Quantum Axcess Way Cool Games Too.iso / games / yalife / source / efns.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-08  |  700 b   |  21 lines

  1. // (c) Jean MICHEL June 1993 -- any modifications must be signaled to the
  2. // author
  3.  
  4. // this defines a system-independent error function mechanism.
  5. // to use cell.cpp under another system that windows, just replace
  6. // winerror.cpp by some appropriate code
  7.  
  8. // error codes to be used in user-provided efns :
  9. // bits 1..4: severity
  10. #define ERROR_ 0x1
  11. #define WARNING_ 0x2
  12. /* bits 5..8: broad category */
  13. #define MEMORY_ 0x10
  14. #define FILE_ 0x20
  15. #define FILEN_ 0x40
  16. // FILE_: print errno system message; FILEN_ : do not print it 
  17. #define SYNTAX_ 0x30
  18. // other bits can be used in more specific applications 
  19. extern void (cdecl *efns)(int /* errcode */,char *,...);
  20. extern int status;
  21.